package com.blog.wl2023.service.com;

import com.blog.wl2023.entity.SiteInfo;
import com.blog.wl2023.entity.response.Result;
import com.blog.wl2023.repository.SiteInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wule
 * @date 2023-12-08  17:28
 * @desc
 */
@Service
public class OtherComService {

	@Autowired
	SiteInfoRepository siteInfoRepository;

	public Result getSiteInfos() {
		List<SiteInfo> all = siteInfoRepository.findAll();
		return Result.ok(all);
	}



}
